﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BrowserGameFramework.DBConnector;
using BrowserGameFramework.Common;
using BrowserGameFramework.Common.Configuration;
using BrowserGameFrameworkTest.TestEnums;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace BrowserGameFrameworkTest.Database
{
    public class MysqlTest
    {
        //public TestResponse TestMysql()
        //{
        //    MySqlCommand command = new MySqlCommand();
        //    command.CommandText = "Login_User";
        //    command.CommandType = System.Data.CommandType.StoredProcedure;

        //    MySqlParameter name = new MySqlParameter("IN_LOGINNAME", "Robin");
        //    MySqlParameter pass = new MySqlParameter("IN_PASS", "test");
        //    MySqlParameter result = new MySqlParameter("OUT_ID", MySqlDbType.Int32);
        //    command.Parameters.Add(name);
        //    command.Parameters.Add(pass);
        //    command.Parameters.Add(result);

        //    //MysqlConnector connector = new MysqlConnector(command, AppConfMan.GetKeyAsString("MysqlConnectionString"));
        //    MysqlConnector connector = new MysqlConnector(command,"MysqlConnectionString");
        //    MysqlResponse response = connector.Invoke();

        //    TestResponse tTesponse = new TestResponse("test", TestEnums.Enums.TestCaseResult.Success);
        //    return tTesponse;
        //}
       
    }
}
